package com.alan.test.mvvm;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;

import com.alan.base.utils.IntentUtils;
import com.alan.base.utils.Logger;
import com.alan.mvvm.BaseVMActivity;
import com.alan.mvvm.base.BaseViewModel;
import com.alan.test.mvvm.databinding.ActivityMainBinding;

public class MainActivity extends BaseVMActivity<ActivityMainBinding, MainViewModel> {


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Logger.d(mVM.test);
        mVB.btnTestFragment.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                IntentUtils.startSimpleActivity(MainActivity.this,TestFragmentActivity.class);
            }
        });
    }
}